//轮播图特效
//获取各个元素
var sliderBox = document.getElementById("slider-box");
var sliderUl = sliderBox.getElementsByTagName("ul")[0];
var sliderOl = sliderBox.getElementsByTagName("ol")[0];
var arrBox = document.getElementById("arr");
var arrBoxL = arrBox.getElementsByTagName("span")[0];
var arrBoxR = arrBox.getElementsByTagName("span")[1];

//获取图片的个数
var count = sliderUl.children.length;
//获取图片的宽度
var boxWidth =  sliderBox.offsetWidth;
//准备一个索引
var index = 0;
//动态创建ol里面的li
for(var i = 0;i<sliderUl.children.length;i++){
    var li = document.createElement("li");
    li.index = i;
    sliderOl.appendChild(li);
    sliderOl.children[0].className = "active";
    li.onclick = function(){

    }
}